import java.util.Calendar;

/**
 * A class which represents a Shift for a bus.
 * 
 * A bus shift contains a Service a bus can be assigned to.
 * @author Adam
 */
public class BusShift extends Shift 
{
    private Service service;
    private Bus bus;
    
    public BusShift(Service service, Bus bus)
    {
        super(service.getStartTime(), service.getEndTime());
        this.service = service;
        this.bus = bus;
    }
    
    public BusShift(Calendar startTime, Calendar endTime, Service service, Bus bus)
    {
        super(startTime, endTime);
        this.service = service;
        this.bus = bus;
    }
    
    
    public Service getService(){
        return this.service;
    }

    public Bus getBus(){
        return this.bus;
    }
    
}
